<script>
export default {
  name: "Home",
  data(){
    return{
      userName:null
    }
  },

}
</script>

<template>
  <el-container>
    <el-header>
      <div>
        <h1 style="float: left">智能公厕系统</h1>
        <div style="float: right">
          <el-dropdown>
            <i class="el-icon-setting" style="margin-right: 15px"></i>
            <el-dropdown-menu slot="dropdown">
              <el-dropdown-item>用户详情</el-dropdown-item>
              <el-dropdown-item>退出</el-dropdown-item>
            </el-dropdown-menu>
          </el-dropdown>
       <spaluon>向阳</spaluon>
        </div>
      </div>
    </el-header>
    <el-container>
      <el-aside width="200px">
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
          router
          unique-opened
        >
          <el-menu-item index="/hello">主页面</el-menu-item>
          <el-submenu index="1">
            <template slot="title">用户管理</template>
            <el-menu-item index="/user">用户列表</el-menu-item>
            <el-menu-item index="/userData">数据分析</el-menu-item>
            <el-menu-item index="/MakeMy">自己创造的界面</el-menu-item>
          </el-submenu>
          <el-submenu index="2">
            <template slot="title">公厕管理</template>
            <el-menu-item index="/hw_ftc">公厕列表</el-menu-item>
          </el-submenu>
          <el-submenu index="3">
            <template slot="title">智能体</template>
            <el-menu-item index="/test">公厕智能环卫</el-menu-item>
          </el-submenu>
        </el-menu>
      </el-aside>
      <el-main>
        <router-view></router-view>
      </el-main>
    </el-container>
  </el-container>
</template>

<style scoped>
.el-container{
  height: 100%;
}
.el-header, .el-footer {


  text-align: center;
  line-height: 60px;

}

.el-aside {
  background-color: #D3DCE6;
  color: #333;
  text-align: center;

}

.el-main {
  background-color: #E9EEF3;
  color: #333;
  text-align: center;


}

body > .el-container {
  margin-bottom: 40px;
}


</style>
